package org.yierge.crm.ssm.plus.users.guid.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yierge.crm.ssm.plus.common.web.JsonResult;

@Slf4j
@RestController(value = "guid_studentController")
@RequestMapping("/account/guid")
@Validated
@Api(tags = "4.1 就业指导学生管理模块")
public class StudentController {

    // TODO 完成查询学生成绩功能
    @GetMapping("/student-score")
    @PreAuthorize("hasAuthority('/account/guid/student-score')")
    @ApiOperation("查询学生成绩列表")
    @ApiOperationSupport(order = 401)
    @ApiImplicitParams({
            @ApiImplicitParam(name="page", value = "页码", defaultValue = "1", dataType = "long"),
            @ApiImplicitParam(name = "queryType", value = "查询类型，当需要查询全部时，此参数值应为all")
    })
    public JsonResult studentScoreList(Integer page, String queryType){



        return JsonResult.ok();
    }
    // TODO

    // TODO 完成查询学生状态功能
    @GetMapping("/student-state")
    @PreAuthorize("hasAuthority('/account/guid/student-state')")
    @ApiOperation("查询学生状态列表")
    @ApiOperationSupport(order = 402)
    @ApiImplicitParams({
            @ApiImplicitParam(name="page", value = "页码", defaultValue = "1", dataType = "long"),
            @ApiImplicitParam(name = "queryType", value = "查询类型，当需要查询全部时，此参数值应为all")
    })
    public JsonResult studentStateList(Integer page, String queryType){



        return JsonResult.ok();
    }
    // TODO



}
